#include "TimeOff.h"
TimeOff::TimeOff(int n, string str)
{
	number=n;
	name=str;
}
TimeOff::TimeOff() {}
void TimeOff::setInformation(int n, string str)
{
	number=n;
	name=str;
}
string TimeOff::getName()
{
	return name;
}
int TimeOff::getNumber()
{
	return number;
}
void TimeOff::set_maxSickDays(int day)
{
	maxSickDays=day;
}
void TimeOff::set_sickTaken(int day)
{
	sickTaken=day;
}
void TimeOff::set_maxVaction(int day)
{
	if(day<=1)
		maxVaction=day;
	else
		std::cout<<"Invalid data: The hours is more than 24.";
}
void TimeOff::set_vacTaken(int day)
{
	vacTaken=day;
}
void TimeOff::set_maxUnpaid(int day)
{
	maxUnpaid=day;
}
void TimeOff::set_unpaidTaken(int day)
{
	unpaidTaken=day;
}
int TimeOff::set_maxSickDays()
{
	return maxSickDays.getDays();
}
int TimeOff::set_sickTaken()
{
	return sickTaken.getDays();
}
int TimeOff::set_maxVaction()
{
	return maxVaction.getDays();
}
int TimeOff::set_vacTaken()
{
	return vacTaken.getDays();
}
int TimeOff::set_maxUnpaid()
{
	return maxUnpaid.getDays();
}
int TimeOff::set_unpaidTaken()
{
	return unpaidTaken.getDays();
}